<%@ page import="com.u1s1.entity.Activity" %><%--
  Created by IntelliJ IDEA.
  User: 15941
  Date: 2020/3/5
  Time: 22:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改用户信息</title>
    <style>
        tr {
            height: 30px;
        }

        td {
            padding: 10px;
        }
    </style>
</head>


<body>
<% Activity activity = (Activity) request.getAttribute("activity");%>
<form action="<%=request.getContextPath()%>updatedo" method="post">
    <input type="hidden" name="id" value="<%=activity.getId()%>"/>
    <table style="margin-left: 100px;padding: 50px;border: 1px #ccc solid;width :400px">
        <%
            String note = (String) request.getAttribute("note"); //注意这里不是getparameter！不是getparameter！不是getparameter！！！
            if (note != null && !"".equals(note)) {
        %>
        <tr>
            <td style="text-align:right; color: red; font-weight: bolder;"><%=note%>
            </td>
        </tr>
        <%
            }
        %>
        <tr>
            <td style="text-align:right">场景名称:</td>
            <td style="text-align:left"><input type="text" name="activityName" value="<%=activity.getActivityName()%>"/></td>
        </tr>
        <tr>
            <td style="text-align:right">指定编号:</td>
            <td style="text-align:left"><input type="text" name="activityNumber" value="<%=activity.getActivityNumber()%>"/></td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center">
                <input type="submit" value="修改场景"/>
            </td>
        </tr>
    </table>
</form>
</body>

</html>
